home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Education / PC-SiG's World of Education.iso / run / 2602 / variable.hlp < prev    next >
Encoding:
Text File  |  1989-06-03  |  2.0 KB  |  45 lines

  1. In DAN's language, variables are files containing multiple pairs of
  2. floating point values.  DAN assumes that the pairs in the file
  3. represent points (i.e.  (x,f(x)) values) on a continuous function whose
  4. other points can be found by a linear interpolation between the given
  5. points unless interpolation mode is disabled (see INTERP control). 
  6. This interpolation is performed automatically by DAN at each step time
  7. whenever it accesses a variable.  Additionally, DAN assumes that the
  8. first value in the file is the value the function would have at any
  9. point preceding the first point, and the last value in the file is used
  10. for all points after the last point.
  11.  
  12. Variables are accessed by including the file name in an expression; for
  13. example,
  14.        PLOT ( A*B );
  15. where A and B are variables representing the functions defined by the
  16. data points in files A and B.
  17. +
  18. Since DAN performs a linear interpolation to determine the value of the
  19. function at points other than those explicitly given in the file, it is
  20. not necessary to have exact agreement between the independent variable
  21. values (i.e.  the x value in an x,f(x) pair) in the file and the step
  22. times; nor between the independent variable values in different files. 
  23. It is also not necessary to have the same number of data points in a
  24. file as the number of step times in the processing period.
  25. +
  26. There are four types of variables:
  27.  
  28. Temporary
  29.      Data files created by DAN when an assignment statement is executed.
  30.      These files are deleted after an algorithm has finished executing.
  31.  
  32. Pre-existing
  33.      Data files preserved via the SAVE statement during a previous
  34.      DAN invocation or created by a user's application program.  These
  35.      files can be used directly in an expression.  They are not deleted
  36.      after the algorithm is done.
  37.  
  38. Predefined
  39.      Variables T, X, and OPER.
  40.  
  41. User defined
  42.      Data consisting of time tag and data value pairs given in an
  43.      ASCII text file that you have created or that was created by
  44.      DAN's WRITE procedure.
  45.